﻿<%@ Page Title="Tin Tức" Language="C#" MasterPageFile="~/HoangThinh.master" AutoEventWireup="true" CodeFile="News.aspx.cs" Inherits="News" %>

<%@ Register src="Site_map.ascx" tagname="Site_map" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="styles/css_user_control.css" rel="stylesheet" type="text/css" />
    <link href="styles/news.css" rel="stylesheet" type="text/css" />  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
       <div class="body_new">
         <div class="new_top">
           <div class="icon_new">
               <img src="Images/icon_tintuc.png" />
           </div>
           <div class="content_head">
                <h2 > 
                    <asp:Label ID="lblTitle_new" runat="server" Font-Bold="True" 
                        Font-Size="25px"></asp:Label>
                </h2>
                <div class="the_by">
                    <asp:Label ID="lbl_the_by" runat="server" Font-Size="15px"></asp:Label>
                </div>
                <div class="date_post">
                    Ngày: <asp:Label ID="lbl_date_post" runat="server" 
                        Font-Size="15px"></asp:Label>
                </div>
           </div>
         </div>
         <div class="new_content" >
            <div class="left_content_new">
              <div class="image_page">
                  <asp:Image ID="ImgNews" CssClass="ImgNews" runat="server" /> 
              </div>
              <div class="The_brief">
                   <div style="height:25px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <img alt="" class="style3" src="images/icon_new_brief.png" /></div>
                  <div class="content_brief" >
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <asp:Label ID="lblSummary" runat="server"></asp:Label>
                  </div>
                  </div>
             <div class="main_content">
                 <asp:Literal ID="ltrContent" runat="server"></asp:Literal>
             </div>
             <div class="like_facebook">

              <div class="fb-like" data-href="http://localhost:1155/HoangThinh/News.aspx" data-send="true" data-width="450" data-show-faces="true"></div>
              <div id="fb-root"></div>
                  <script>    (function (d, s, id) {
                  var js, fjs = d.getElementsByTagName(s)[0];
                  if (d.getElementById(id)) return;
                     js = d.createElement(s); js.id = id;
                     js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1";
                     fjs.parentNode.insertBefore(js, fjs);
                     } (document, 'script', 'facebook-jssdk'));</script>
             </div>
             <div class="main_comment">
                 <table cellpadding="0" cellspacing="0" style="width:610px; height:280px; margin-left:50px; font-weight:bold">
                     <tr>
                         <td colspan="3" style="padding-left:0px; font-size:20px; font-weight:bold">
                            Comment
                             </td>           
                     </tr>
                     <tr>
                         <td style=" width: 80px; font-weight:bold">
                             Họ & tên</td>
                           <td>
                             <asp:TextBox ID="txtHovaTen" runat="server" Height="31px" Width="289px" 
                                   Font-Size="17px"></asp:TextBox></td>
                         <td>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                 ControlToValidate="txtHovaTen" ErrorMessage="Họ tên không để trống" 
                                 ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                         </td>
                     </tr>
                     <tr>
                         <td style=" width: 80px; font-weight:bold">
                             Email</td>
                         <td>
                             <asp:TextBox ID="txtEmail" runat="server" Height="31px" Width="289px" 
                                 Font-Size="17px"></asp:TextBox>
                         </td>
                         <td>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                 ControlToValidate="txtEmail" ErrorMessage="Email không để trống" 
                                 ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                             <br />
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                 ControlToValidate="txtEmail" ErrorMessage="Email không đúng định dạng" 
                                 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                 ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
                         </td>
                     </tr>
                     <tr>
                         <td style=" width: 80px; vertical-align:top;font-weight:bold">
                             Nội dung</td>
                         <td>
                             <asp:TextBox ID="txtNoidung" runat="server" Height="100px" Width="290px" 
                                 TextMode="MultiLine" Font-Size="17px"></asp:TextBox>
                         </td>
                         <td >
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                 ControlToValidate="txtNoidung" ErrorMessage="Nội dung không để trống" 
                                 ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                         </td>
                     </tr>
                     <tr >
                         <td style=" width: 80px">
                             &nbsp;</td>
                         <td>
                             <asp:Button ID="btnGui" runat="server" Text="Gửi" CssClass="btnGui" 
                                 ValidationGroup="1" onclick="btnGui_Click" />
                         </td>
                         <td>
                             &nbsp;</td>
                     </tr>
                 </table>
             </div>
            </div>
            <div class="right_new">
              <div class="benner_image">
                  <img src="Images/benner_quangcao_giayphep.png" />
              </div>
              <div class="list_new">
                  <asp:Repeater ID="Repeater1" runat="server">
                      <ItemTemplate>
                          <div class="latest_news">
                       <div class="h_latest_news">
                            <h2 style="height:auto; width:309px; font-weight:bold;font-size:17px; display:block">
                             <a href="News.aspx?id=<%#Eval("NewsID")%>"><%#Eval("NewsTitle")%></a>
                            </h2>
                            <div id="powered_by">
                               <p><%#Eval("Author")%></p>
                            </div>
                       </div>
                       <div class="summary_latest_news">
                         <div  class="image_latest_news"> 
                         <a href="News.aspx?id=<%#Eval("NewsID")%>"><img alt="<%#Eval("ImageUrl")%>" style="width:101px; height:67px;display:block" src="<%#Eval("ImageUrl")%>"/></a>
                             
                         </div>
                         <div class="content_latest_news">
                          <p><%#Eval("Summary")%></p>
                         </div>
                       </div>    
                  </div>
                      </ItemTemplate>
                    </asp:Repeater>
              </div>
              <div class="site_map">
                  <uc1:Site_map ID="Site_map1" runat="server" />
              </div>
            </div>
          
         </div>
    </div>
</asp:Content>

